![]() |
Kinetis SDK API Reference Manual
1.0.0-beta
Freescale Semiconductor, Inc.
|
The section describes the programming interface of the SMC HAL driver. More...
Data Structures | |
| struct | smc_power_mode_protection_config_t |
| Power mode protection configuration. More... | |
System mode controller APIs | |
| void | smc_hal_config_power_mode_protection (smc_power_mode_protection_config_t *protectConfig) |
| Configures all power mode protection settings. More... | |
| void | smc_hal_set_power_mode_protection (power_modes_protect_t protect, bool allow) |
| Configures the individual power mode protection settings. More... | |
| bool | smc_hal_get_power_mode_protection (power_modes_protect_t protect) |
| Gets the the current power mode protection setting. More... | |
| void | smc_hal_power_mode_config_run (smc_run_mode_t runMode) |
| Configures the the RUN mode control setting. More... | |
| smc_run_mode_t | smc_hal_power_mode_get_run_config (void) |
| Gets the current RUN mode configuration setting. More... | |
| void | smc_hal_power_mode_config_stop (smc_stop_mode_t stopMode) |
| Configures the STOP mode control setting. More... | |
| smc_stop_mode_t | smc_hal_power_mode_get_stop_config (void) |
| Gets the current STOP mode control settings. More... | |
| void | smc_hal_power_mode_config_stop_submode (smc_stop_submode_t stopSubMode) |
| Configures the stop sub mode control setting. More... | |
| smc_stop_submode_t | smc_hal_power_mode_get_stop_submode_config (void) |
| Gets the current stop submode configuration settings. More... | |
| uint8_t | smc_hal_get_power_mode_stat (void) |
| Gets the current power mode stat. More... | |
| struct smc_power_mode_protection_config_t |
| enum power_mode_stat_t |
| enum smc_run_mode_t |
| enum smc_stop_mode_t |
| enum smc_lpwui_option_t |
| enum smc_pstop_option_t |
| enum smc_por_option_t |
| enum smc_lpo_option_t |
| enum smc_power_options_t |
| void smc_hal_config_power_mode_protection | ( | smc_power_mode_protection_config_t * | protectConfig | ) |
This function configures the power mode protection settings for supported power modes in the specified chip family. The available power modes are defined in the smc_power_mode_protection_config_t. An application should provide the protect settings for all supported power modes on the chip. This should be done at an early system level initialization stage. See the reference manual for details. This register can only write once after the power reset. If the user has only a single option to set, either use this function or use the individual set function.
| protectConfig | Configurations for the supported power mode protect settings
|
| void smc_hal_set_power_mode_protection | ( | power_modes_protect_t | protect, |
| bool | allow | ||
| ) |
This function only configures the power mode protection settings for a specified power mode on the specified chip family. The available power modes are defined in the smc_power_mode_protection_config_t. See the reference manual for details. This register can only write once after the power reset.
| protect | Power mode to set for protection |
| allow | Allow or not allow the power mode protection |
| bool smc_hal_get_power_mode_protection | ( | power_modes_protect_t | protect | ) |
This function gets the current power mode protection settings for a specified power mode.
| protect | Power mode to set for protection |
| void smc_hal_power_mode_config_run | ( | smc_run_mode_t | runMode | ) |
This function sets the run mode settings, for example, normal run mode, very lower power run mode, etc. See the smc_run_mode_t for supported run mode on the chip family and the reference manual for details about the run mode.
| runMode | Run mode setting defined in smc_run_mode_t |
| smc_run_mode_t smc_hal_power_mode_get_run_config | ( | void | ) |
This function gets the run mode settings. See the smc_run_mode_t for a supported run mode on the chip family and the reference manual for details about the run mode.
| void smc_hal_power_mode_config_stop | ( | smc_stop_mode_t | stopMode | ) |
This function sets the stop mode settings, for example, normal stop mode, very lower power stop mode, etc. See the smc_stop_mode_t for supported stop mode on the chip family and the reference manual for details about the stop mode.
| stopMode | Stop mode defined in smc_stop_mode_t |
| smc_stop_mode_t smc_hal_power_mode_get_stop_config | ( | void | ) |
This function gets the stop mode settings, for example, normal stop mode, very lower power stop mode, etc. See the smc_stop_mode_t for supported stop mode on the chip family and the reference manual for details about the stop mode.
| void smc_hal_power_mode_config_stop_submode | ( | smc_stop_submode_t | stopSubMode | ) |
This function sets the stop submode settings. Some of the stop mode further supports submodes. See the smc_stop_submode_t for supported stop submodes and the reference manual for details about the submodes for a specific stop mode.
| stopSubMode | Stop submode setting defined in smc_stop_submode_t |
| smc_stop_submode_t smc_hal_power_mode_get_stop_submode_config | ( | void | ) |
This function gets the stop submode settings. Some of the stop mode further support submodes. See the smc_stop_submode_t for supported stop submodes and the reference manual for details about the submode for a specific stop mode.
| uint8_t smc_hal_get_power_mode_stat | ( | void | ) |
This function returns the current power mode stat. Once application switches the power mode, it should always check the stat to check whether it runs into the specified mode or not. An application should check this mode before switching to a different mode. The system requires that only certain modes can switch to other specific modes. See the reference manual for details and the _power_mode_stat for information about the power stat.